// -*- C++ -*-
-// $Id: mainwindow.cpp,v 1.16 2010/02/15 02:57:00 robertl Exp $
+// $Id: mainwindow.cpp,v 1.17 2010/02/16 02:49:43 robertl Exp $
//------------------------------------------------------------------------
//
// Copyright (C) 2009 S. Khai Mong <khai@mangrai.com>.
connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(closeActionX()));
connect(ui.actionHelp, SIGNAL(triggered()), this, SLOT(helpActionX()));
connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(aboutActionX()));
+ connect(ui.actionUpgradeCheck, SIGNAL(triggered()), this, SLOT(upgradeCheckActionX()));
connect(ui.actionPreferences, SIGNAL(triggered()), this, SLOT(preferencesActionX()));
connect(ui.inputFormatCombo, SIGNAL(currentIndexChanged(int)),
//--- Restore from registry
restoreSettings();
+ upgrade = new UpgradeCheck(parent, formatList);
if (bd.startupVersionCheck) {
- upgrade = new UpgradeCheck(parent, formatList);
upgrade->checkForUpgrade(babelVersion, bd.upgradeCheckMethod,
bd.upgradeCheckTime, bd.installationUuid,
bd.reportStatistics);
aboutDlg.exec();
}
+//------------------------------------------------------------------------
+void MainWindow::upgradeCheckActionX()
+{
+ upgrade->checkForUpgrade(babelVersion, bd.upgradeCheckMethod,
+ QDateTime(), bd.installationUuid,
+ bd.reportStatistics);
+}
+
//------------------------------------------------------------------------
void MainWindow::preferencesActionX()
{
// -*- C++ -*-
-// $Id: mainwindow.h,v 1.8 2010/02/14 21:29:06 robertl Exp $
+// $Id: mainwindow.h,v 1.9 2010/02/16 02:49:43 robertl Exp $
//------------------------------------------------------------------------
//
// Copyright (C) 2009 S. Khai Mong <khai@mangrai.com>.
void outputOptionButtonClicked();
void preferencesActionX();
void resetFormatDefaults();
+ void upgradeCheckActionX();
};
<addaction name="actionHelp"/>
<addaction name="separator"/>
<addaction name="actionAbout"/>
+ <addaction name="actionUpgradeCheck"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuHelp"/>
<string>Preferences...</string>
</property>
</action>
+ <action name="actionUpgradeCheck">
+ <property name="text">
+ <string>Check for Upgrade</string>
+ </property>
+ </action>
</widget>
<resources>
<include location="app.qrc"/>